var u_class=new Array('.user_name','.user_edu','.user_tel','.user_email','.user_eduB','.user_exper','.user_intro');
$(function()
{
	//navChange();
	//showMiniMenu();
	navLoginChange();
	imgBackGroundChange();	
	ampilfityChange();	
	fastClassifity();
	//$('[data-toggle="popover"]').popover();
	createPreModel();
	createModalList();
	startTips();
	getOs();
	createModal();
})
function getURL()
{
	var url=document.URL;
	var start=url.indexOf('m');
 	url=url.substr(start+2);
	return url;
}
function navChange()
{
	if($('#Index').hasClass('active'))
	{
		$('#nav-container').removeClass('nav-container-offIndex');
		$('#nav-container').addClass('nav-container');
		$('#navbar').removeClass('navbar-content-offIndex');
		$('#navbar').addClass('navbar-content');
		//alert('Index active');
	}
	if($('#Index').hasClass('active')==false)
	{
		$('#nav-container').addClass('nav-container-offIndex');
		$('#navbar').removeClass('navbar-content');
		$('#navbar').addClass('navbar-content-offIndex');
		//alert('Index not active');
	}
}
function showMiniMenu()
{
	$('#miniMenu').mouseout(function()
	{
		$('#miniMenu').css({'background-color':'#222222','border':'1px solid white'});							
	});
	$('#miniMenu').mousemove(function()
	{
		$('#miniMenu').css('background-color','#DDDDDD')
	});
}
function navLoginChange()
{
	//用户登录后登录变成显示个人ID,并启动下拉菜单
	if($('#login').text()=='登录')
	{
		$('#userID').hide();
	}
	else
	{
		$('#login').hide();
		$('#userID').show();	
		$('#userID').text($('#login').text());
		$('#userID').append('<span class="caret"></span>');
		$('#login').attr('tk','1');
	}
}
//part2 快速分类
function fastClassifity()
{
	$('.classifityLi').click(function(e)
	{
		$('.classifityLi').removeClass('active');
		$(this).addClass('active');
		if($(this).attr('id')=='software')
		{
			//alert('showSoftware');
			$('.software').show();
			$('.mangment').hide();
			$('.people-science').hide();
		}
		else if($(this).attr('id')=='mangment')
		{
			$('.software').fadeOut();
			$('.mangment').show();					
			$('.people-science').hide();
		}
		else if($(this).attr('id')=='people-science')
		{
			$('.software').hide();
			$('.mangment').hide();
			$('.people-science').show();
		}
		else if($(this).attr('id')=='all')
		{
			$('.software').show();
			$('.mangment').show();
			$('.people-science').show();
		}
		//alert($(this).attr('id'));
	});
}
function imgBackGroundChange()
{
	var getOsResult=getOs();
	$('.product').mouseover(function(e)
	{		
		$(e.target).parent().find('.ampilfity').show();
		if(getOsResult=='MSIE')
		{
			$(e.target).addClass('imgVirtual');
		}
		else
		{
			$(e.target).addClass('imgGroundGlass');			
		}				
	});	
	$('.product').mouseout(function(e)
	{
		$(e.target).parent().find('.ampilfity').hide();	
		if(getOsResult=='MSIE')
		{
			$($(e.target)).removeClass('imgVirtual');
		}
		else
		{
			$($(e.target)).removeClass('imgGroundGlass');			
		}	
	})		
}
function ampilfityChange()
{
	$('.ampilfity').hide();
	$('.ampilfity').mouseover(function(e)
	{
		//$(e.target).siblings('.product').addClass('product');
		$(e.target).show();		
	})
	$('.ampilfity').mouseout(function(e)
	{
		$(e.target).hide();		
	})
}
//初始化简历模态框页脚提示
function startTips()
{	
	//后续动态优化
	var modal=new Array('#project1','#project2','#project3','#project4','#project5','#project6');
	$("[data-toggle='tooltip']").tooltip();
	$("[data-toggle='popover']").popover();	
	$('.createModal').mouseover(function(e)
	{
		$(e.target).parent().find('.showTips').addClass("thumbnail text-warning");
		$(e.target).parent().find('.showTips').css('display','inline');
		if($('#login').text()!=='登录')
		{
			$(e.target).parent().find('.showTips').text('填写后提交');
		}
		else
		{
			$(e.target).parent().find('.showTips').text('请登录');
		}
		$(e.target).parent().find('.showTips').fadeIn();
		//alert($(e.target).parent().find('.showTips').attr('id'));
	});
	$('.createModal').mouseout(function(e)
	{
		$(e.target).parent().find('.showTips').removeClass("thumbnail text-warning");
		$(e.target).parent().find('.showTips').text('');
		$(e.target).parent().find('.showTips').fadeOut();
	});
	//模态框完全加载后执行
	for(var i=0;i<modal.length;++i)
	{
		$(""+modal[i]+"").on("shown.bs.modal",function()
		{
			//alert('带*号为必填选项(推荐全部填写)!');
			$('.input-tip').popover('show');
			setTimeout(function()
			{
				$('.input-tip').popover('hide');
			},1800)
			$('.uInfos').each(function(index, element) 
			{
				$('.uInfos').click(function()
				{
					var state=$('.uInfos').hasClass('uInfosAct');
					if(state==false)
					{
						$(this).addClass('uInfosAct');
					}
					return;
				});
			});
		});
		$(""+modal[i]+"").on("hide.bs.modal",function()
		{
			inputTip(0,0);
			$('.uInfos').each(function(index, element) 
			{
				$('.uInfos').removeClass('uInfosAct');
			});/**/
			//hide方法后调用
		});
	}
	/*$('#project1').on("shown.bs.modal",function()
	{
		alert('带*号为必填选项(推荐全部填写)!');
	});
	$('#project1').on("show.bs.modal",function()
	{
		//show方法后调用
	});
	$('#project1').on("shown.bs.modal",function()
	{
		//监听模态框隐藏时间做一些动作----->请添加清除表格中未提交的数据!!!!!		
	});
	$('#project1').on("hide.bs.modal",function()
	{
		//hide方法后调用
	});
	*/
}
function checkIntros()
{
	var check_rst=new Array();
	var checked='';
	var flag=0;
	for(var i=0;i<u_class.length;++i)
	{
		$(u_class[i]).each(function(index, element)
		{
			checked=$(this).val();
			if(checked==false)
			{
				return ;
			}
			//check_rst[i]=u_class[i]+':'+checked;
			check_rst[i]=u_class[i];
		});
	}
	return check_rst;
}
function checkedIntros()
{
	var flag=-1;
	var rst=checkIntros();
	for(var i=0;i<u_class.length;++i)
	{
		if(rst.indexOf(""+u_class[i]+"")==-1)
		{
			//console.log('未选择->'+u_class[i]);
			$(""+u_class[i]+"").css({'border':'1px solid orange'});
			flag=0;
			continue;
		};
	}
	//If have some required inputs are null ,return directly
	if(flag==0)
	{
		alt("请填写带*选项");
		return;
	}
	//check SEX special
	if(!$('.sexR:checked').val())
	{
		alt("性别未填写");
		//console.log($('.sexR:checked').val());
		return;
	}
	//check Telephone and Email!
	var tel='';
	var email='';
	var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/; 
	if(flag!=0)
	{
		tel=$('.uInfosAct .user_tel').val();
		if(tel.length>11||tel.length<8 ||isNaN(tel))
		{
			alt("请输入正确电话号码");
			return;
		}
		flag=1;
	}
	if(flag)
	{
		email=$('.uInfosAct .user_email').val();
	 	if(!reg.test(email))
		{
			alt("请输入正确邮箱");
			return;	
		}
	}
	return true;
}
function inputTip(method,time)
{
	if(method==0)
	{
//$(':input',".uInfos").not(":button",":reset","hidden","submit",":radio").val("").removeAttr("checked").removeAttr("selected");
		$('.sexR').removeAttr("checked");
		for(var i=0;i<u_class.length;++i)
		{
			$(u_class[i]).val("");
		}
		$(".user_intro").val('');
	}
	setTimeout(function()
	{
		for(var i=0;i<u_class.length;++i)
		{
			$(""+u_class[i]+"").css({'border':'1px solid #cdcdcd'});
		}
	},time);
}
function createModal()
{	
	$('.createModal').click(function()
	{
		if($('#login').attr('tk')==1)
		{
			if(!checkedIntros())
			{
				inputTip(1,2000);
				return;
			}
			$.ajax({
			  type:'post',
			  url:'?&a=createDOC',
			  data:$('.uInfosAct').serialize(),
			  cache:false,
			  success:function(data)
			  {	 
				//console.log(data);
				//clean the inputs value
				inputTip(0,0)
				switch(data)
				{
					case '0':alt('请重新登录');break;
					case '1':alt('用户名不能为空');break;
					case '2':alt('性别不能为空');break;
					case '3':alt('学历不能为空');break;
					case '4':alt('电话不能为空');break;
					case '5':alt('邮箱不能为空');break;
					case '6':alt('教育经历不能为空');break;
					case '7':alt('实习经历不能为空');break;
					case '8':alt('自我介绍不能为空');break;
					default:
					alt('已生成 '+data+'.doc WORD文档');
					setTimeout(function()
					{
						//查看word文档
						//window.open('/Public/assets/models/'+data+'.doc');
						//location.href="/Public/assets/models/"+data+".doc";
					},1000);
				}
			  },
			  error:function(XmlHttpRequest,textStatus,errorThrown)
			  {
			  }
			});
		}
		else
		{
			alt('请先登录');
		}
	});
}
//判断浏览器(调节浏览器兼容性bug)	 
function getOs()
{
	var OsObject = "";
	if(!!window.ActiveXObject || "ActiveXObject" in window)
	{		
		$('.user_date').attr("placeholder","日期格式：2010-10-22");  
		$('.internship-experience').css({'margin-top':'100px;'});
		//return "MSIE";
	}
	else if(isFirefox=navigator.userAgent.indexOf("Firefox")!=-1)
	{
		$('#bgImgChange').removeClass('bgImgChang');
		$('#bgImgChange').addClass('bgImgChang-firefox');	
		//$('.user_date').attr("placeholder","日期格式：2017-10-22");
		$('.self-introduce-2').css({'margin-top':'7%'});
		//return "Firefox";
	}
	else if(isChrome=navigator.userAgent.indexOf("Chrome")!=-1)
	{					
		//return "Chrome";
	}
	/*
	else if(isSafari=navigator.userAgent.indexOf("Safari")!=-1) {
			return "Safari";
	} 
	else if(isOpera=navigator.userAgent.indexOf("Opera")!=-1){
			return "Opera";
	}
	*/
}
function alt(msg, mode)
{ 	  //mode为空，即只有一个确认按钮，mode为1时有确认和取消两个按钮
	msg = msg || '';
	mode = mode || 0;
	var top = document.body.scrollTop || document.documentElement.scrollTop;
	var isIe = (document.all) ? true : false;
	var isIE6 = isIe && !window.XMLHttpRequest;
	var sTop = document.documentElement.scrollTop || document.body.scrollTop;
	var sLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
	var winSize = function(){
		var xScroll, yScroll, windowWidth, windowHeight, pageWidth, pageHeight;
		// innerHeight获取的是可视窗口的高度，IE不支持此属性
		if (window.innerHeight && window.scrollMaxY) {
			  xScroll = document.body.scrollWidth;
			  yScroll = window.innerHeight + window.scrollMaxY;
		} else if (document.body.scrollHeight > document.body.offsetHeight) { // all but Explorer Mac
			  xScroll = document.body.scrollWidth;
			  yScroll = document.body.scrollHeight;
		} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
			  xScroll = document.body.offsetWidth;
			  yScroll = document.body.offsetHeight;
		}
		if (self.innerHeight) {    // all except Explorer
			  windowWidth = self.innerWidth;
			  windowHeight = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
			  windowWidth = document.documentElement.clientWidth;
			  windowHeight = document.documentElement.clientHeight;
		} else if (document.body) { // other Explorers
			  windowWidth = document.body.clientWidth;
			  windowHeight = document.body.clientHeight;
		}
		  // for small pages with total height less then height of the viewport
		if (yScroll < windowHeight) {
			  pageHeight = windowHeight;
		} else {
			  pageHeight = yScroll;
		}
		  // for small pages with total width less then width of the viewport
		if (xScroll < windowWidth) {
			  pageWidth = windowWidth;
		} else {
			  pageWidth = xScroll;
		}
	    return{
			  'pageWidth':pageWidth,
			  'pageHeight':pageHeight,
			  'windowWidth':windowWidth,
			  'windowHeight':windowHeight
		}
	  }();
	  //alert(winSize.pageWidth);
	  //遮罩层
      var styleStr = 'top:0;left:0;position:absolute;z-index:10000;background:#666;width:' + winSize.pageWidth + 'px;height:' +  (winSize.pageHeight + 30) + 'px;';
      styleStr += (isIe) ? "filter:alpha(opacity=80);" : "opacity:0.8;"; //遮罩层DIV
      var shadowDiv = document.createElement('div'); //添加阴影DIV
      shadowDiv.style.cssText = styleStr; //添加样式
      shadowDiv.id = "shadowDiv";
      //如果是IE6则创建IFRAME遮罩SELECT
      if(isIE6){
            var maskIframe = document.createElement('iframe');
            maskIframe.style.cssText = 'width:' + winSize.pageWidth + 'px;height:' + (winSize.pageHeight + 30) + 'px;position:absolute;visibility:inherit;z-index:-1;filter:alpha(opacity=0);';
            maskIframe.frameborder = 0;
            maskIframe.src = "about:blank";
            shadowDiv.appendChild(maskIframe);
      }
      document.body.insertBefore(shadowDiv, document.body.firstChild); //遮罩层加入文档
      //弹出框
      var styleStr1 = 'display:block;position:fixed;_position:absolute;left:' + (winSize.windowWidth / 2 - 200) + 'px;top:' + (winSize.windowHeight / 2 - 150) + 'px;_top:' + (winSize.windowHeight / 2 + top - 150)+ 'px;'; //弹出框的位置
      var alertBox = document.createElement('div');
      alertBox.id = 'alertMsg';
      alertBox.style.cssText = styleStr1;
      //创建弹出框里面的内容P标签
      var alertMsg_info = document.createElement('P');
      alertMsg_info.id = 'alertMsg_info';
      alertMsg_info.innerHTML = msg;
      alertBox.appendChild(alertMsg_info);
      //创建按钮
      var btn1 = document.createElement('a');
      btn1.id = 'alertMsg_btn1';
      btn1.href = 'javas' + 'cript:void(0)';
      btn1.innerHTML = '<cite>确定</cite>';
      btn1.onclick = function () {
      document.body.removeChild(alertBox);
      document.body.removeChild(shadowDiv);
      return true;
      };
      alertBox.appendChild(btn1);
      if(mode === 1){
      	var btn2 = document.createElement('a');
        btn2.id = 'alertMsg_btn2';
        btn2.href = 'javas' + 'cript:void(0)';
        btn2.innerHTML = '<cite>取消</cite>';
        btn2.onclick = function () {
        	document.body.removeChild(alertBox);
            document.body.removeChild(shadowDiv);
            return false;
        };
        	alertBox.appendChild(btn2);
       }
       document.body.appendChild(alertBox);
}
function createPreModel()
{
	var param1=new Array();
	param1["class"]="people-science";
	param1["bg_color"]="lightBlack";
	param1["img_path"]="black-white-mini.jpg";
	param1["target_model"]="project1";
	param1["info_title"]="黑白简约经典简历";
	param1["info_content"]="黑白简历中的佼佼者，低调内敛，简约朴实，经典简历的不二之选";
	param1["state"]="已上传";
	param1["up_date"]="2017-11-25";
	var param2=new Array();
	param2["class"]="mangment";
	param2["bg_color"]="drinkRed";
	param2["img_path"]="fashion-mini.jpg";
	param2["target_model"]="project2";
	param2["info_title"]="简约大气时尚简历";
	param2["info_content"]="新简历的开拓者，黑白交替，简单多彩，时尚气息扑面而来";
	param2["state"]="已更新";
	param2["up_date"]="2017-11-17";
	var param3=new Array();
	param3["class"]="software";
	param3["bg_color"]="deepBlue";
	param3["img_path"]="new-idea-mini.jpg";
	param3["target_model"]="project3";
	param3["info_title"]="暗黑主题简历";
	param3["info_content"]="暗黑简历又一新作，纯粹奥秘，大有不同，探索新简历";
	param3["state"]="未更新";
	param3["up_date"]="2017-12-1";
	var param4=new Array();
	param4["class"]="software";
	param4["bg_color"]="orange";
	param4["img_path"]="colorful-mini.jpg";
	param4["target_model"]="project4";
	param4["info_title"]="靓丽多彩简历";
	param4["info_content"]="青春靓丽，活力多姿，年轻本该多彩，初入职场的推荐之作";
	param4["state"]="已更新";
	param4["up_date"]="2017-12-5";
	var param5=new Array();
	param5["class"]="people-science";
	param5["bg_color"]="qing";
	param5["img_path"]="freshness-mini.jpg";
	param5["target_model"]="project5";
	param5["info_title"]="清新亮丽简历";
	param5["info_content"]="清新简约，色调柔和，明媚动人，文艺青年的首选简历";
	param5["state"]="已上传";
	param5["up_date"]="2017-12-15";
	var param6=new Array();
	param6["class"]="people-science";
	param6["bg_color"]="grassGreen";
	param6["img_path"]="simple-mini.jpg";
	param6["target_model"]="project6";
	param6["info_title"]="黑白简约经典简历2";
	param6["info_content"]="黑白简历卷土重来，洗尽铅华，再次诠释黑白交互的艺术";
	param6["state"]="已上传";
	param6["up_date"]="2017-12-19";
	param=[param1,param2,param3,param4,param5,param6];
	var pre_model='';
	/*后期请优化 制作开发和生产版本*/
	for(var i=0;i<param.length;i++)
	{
		pre_model+='<div class="info col-lg-4 col-md-4 col-sm-6 '+param[i]["class"]+'">';
    	pre_model+='<div class="thumbnail info-bg-'+param[i]["bg_color"]+'">';
        	pre_model+='<img class="img-responsive product" src="./Public/images/'+param[i]["img_path"]+'"  data-target="#'+param[i]["target_model"]+'" data-toggle="modal">';
            pre_model+='<span class="glyphicon glyphicon-zoom-in ampilfity"  data-target="#'+param[i]["target_model"]+'" data-toggle="modal"></span>';
            pre_model+='<h3 class="info-title">'+param[i]["info_title"]+'</h3>';
            pre_model+='<p class="info-content">'+param[i]["info_content"]+'</p>';
            pre_model+='<div class="add-info text-center">';
            	 pre_model+='<span class="state pull-left">'+param[i]["state"]+'</span>';
                 pre_model+='<button type="button" class="btn btn-info btn-xs lookResume" data-target="#'+param[i]["target_model"]+'" data-toggle="modal">查看简历</button>';
                  pre_model+='<span class="pull-right">'+param[i]["up_date"]+'</span>';
                  pre_model+='<div class="clearfix"></div>';
            pre_model+='</div><!--add-infoEnd!-->';
		pre_model+='</div>';         
	  pre_model+='</div>';
	}
	$('#pre_model').append(pre_model);
}
function createModalList()
{
	var item1=new Array();
	item1["title"]="黑白简约个人简历";
	item1["fir"]="民族";
	item1["sec"]="身高";
	item1["thi"]="政治面貌";
	item1["img_path"]="black-white.jpg";
	var item2=new Array();
	item2["title"]="简约大气时尚个人简历";
	item2["fir"]="专业";
	item2["sec"]="毕业院校";
	item2["thi"]="籍贯";
	item2["img_path"]="fashion-ampilfity.jpg";
	var item3=new Array();
	item3["title"]="暗黑主题简历";
	item3["fir"]="求职意向";
	item3["sec"]="理想工资";
	item3["thi"]="政治面貌";
	item3["img_path"]="new-idea.jpg";
	var item4=new Array();
	item4["title"]="靓丽多彩个人简历";
	item4["fir"]="专业";
	item4["sec"]="毕业院校";
	item4["thi"]="籍贯";
	item4["img_path"]="colorful.jpg";
	var item5=new Array();
	item5["title"]="简约大气时尚个人简历";
	item5["fir"]="专业";
	item5["sec"]="毕业院校";
	item5["thi"]="籍贯";
	item5["img_path"]="freshness.jpg";
	var item6=new Array();
	item6["title"]="简约大气时尚个人简历";
	item6["fir"]="专业";
	item6["sec"]="毕业院校";
	item6["thi"]="籍贯";
	item6["img_path"]="simple.jpg";
	var modal=new Array();
	modal=[item1,item2,item3,item4,item5,item6];
	var param='';
	for(var i=0;i<modal.length;i++)
	{
		param+='<div class="modal fade" tabindex="-1" id="project'+(i+1)+'" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header modalHeaderBG"><button class="close" type="button" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button><h4 class="modal-title">'+modal[i]['title']+'</h4></div><div class="modal-body"><h3 class="text-center modalBodyTitle input-tip" data-toggle="popover" data-trigger="hover" title="<span class=\'ipt-tle\'>小提示</span>" data-content="<span class=\'ipt-con\'>带*号为必填选项(推荐全部填写)!</span>" data-placement="top" data-html="true">请填写左侧个人信息以快速生成简历</h3><div class="row"><form id="userInfo" class="uInfos"><div class="col-md-6"><input type="hidden" id="version" name="version" value="1" /><div class="basic-infos"><h4 class="basic-infos-lable">1.基本信息</h4><div class="name-sex"><div class="name pull-left"><div class="input-group"><span class="input-group-addon">*姓名</span><input type="text" class="form-control user_name" name="name"></div></div><div class="sex pull-right"><label class="sexLableInfo">*性别</label><label class="radio-inline sexLable"><input type="radio" class="sexR" name="sex" value="male">男</label><label class="radio-inline sexLable"><input type="radio" class="sexR" name="sex" value="female">女</label></div><div class="clearfix"></div></div><div class="infos-pad-5"><div class="infos-item-half pull-left"><div class="input-group"><span class="input-group-addon">'+modal[i]['fir']+'</span><input type="text" class="form-control" name="nation"></div></div><div class="infos-item-half pull-right"><div class="input-group"><span class="input-group-addon">'+modal[i]['sec']+'</span><input type="text" class="form-control" name="campus" /></div></div><div class="clearfix"></div></div><div class="date"><div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span><input type="date" class="form-control user_date" name="date" data-toggle="tooltip" data-placement="bottom" title="填写出生日期"></div></div><div class="infos-pad-5"><div class="infos-item-half pull-left"><div class="input-group"><span class="input-group-addon">*学历</span><input type="text" class="form-control user_edu" name="degree"></div></div><div class="infos-item-half pull-right"><div class="input-group"><span class="input-group-addon">'+modal[i]['thi']+'</span><input type="text" class="form-control" name="place"></div></div><div class="clearfix"></div></div><div class="tel-emile"><div class="tel pull-left"><div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-earphone"></span></span><input type="tel" class="form-control user_tel" name="tel" placeholder="*电话/手机号"></div></div><div class="emile pull-right"><div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-envelope"></span></span><input type="email" class="form-control user_email" name="email" placeholder="*邮箱" /></div></div><div class="clearfix"></div></div></div><!--basic-infosEnd!--><div class="edcationBackground"><h4 class="edcationBackgroundInfo">2.*教育经历</h4><textarea class="form-control user_eduB" rows="4" name="edu_exper"></textarea></div><!--edcationBackgroundEnd!--> <div class="internship-experience"><h4 class="internship-experience-info">3.*实习经历</h4><textarea class="form-control user_exper" rows="3" name="exper"></textarea></div><!--Internship-experienceEnd--></div><div class="col-md-6"><h4 class="text-center">简历效果图</h4><img src="./Public/images/'+modal[i]['img_path']+'" class="img-responsive img-thumbnail center-block resumeEffect"><div class="self-introduce-2"> <h4 class="self-introduc-info">4.*自我评价</h4><textarea class="form-control user_intro" rows="3" name="self_int"></textarea></div></form></div></div></div><div class="modal-footer"><span class="showTips" id="showTips"></span><button type="button" class="btn btn-success createModal">一键生成简历</button><a tabindex="0" class="btn btn-info" data-toggle="popover" data-trigger="focus" data-placement="top" title="下载提示" data-content="暂无此简历doc文档资源">下载此简历模板doc文档</a><button type="button" class="btn  btn-danger" data-dismiss="modal">关闭</button></div></div></div></div>';	
	}
	$('#modal_list').append(param);
}